/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fr.p10.miage.gestionabsence.model;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Date;

/**
 *
 * @author huynal
 */
public class Jour {
    
    private int idJ;
    private Date dateE;
    private String ferieE;

    public Jour() {
    }

    public Jour(int idJ, Date dateE, String ferieE) {
        this.idJ = idJ;
        this.dateE = dateE;
        this.ferieE = ferieE;
    }

    public Date getDateE() {
        return dateE;
    }

    public void setDateE(Date dateE) {
        this.dateE = dateE;
    }

    public String getFerieE() {
        return ferieE;
    }

    public void setFerieE(String ferieE) {
        this.ferieE = ferieE;
    }

    public int getIdJ() {
        return idJ;
    }

    public void setIdJ(int idJ) {
        this.idJ = idJ;
    }
    
    public void init(ResultSet resultat) throws SQLException{
        this.idJ = resultat.getInt("IDJ");
        this.dateE = resultat.getDate("DATEE");
        this.ferieE = resultat.getString("FERIEE");
    }
}
